.class Lcom/teewoo/app/bus/ui/LinePassByStation$2;
.super Ljava/lang/Object;
.source "LinePassByStation.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/LinePassByStation;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    .line 137
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/LinePassByStation$2;)Lcom/teewoo/app/bus/ui/LinePassByStation;
    .locals 1
    .parameter

    .prologue
    .line 137
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 10
    .parameter "v"

    .prologue
    const v1, 0x7f08001d

    const v3, 0x7f02005d

    const v5, 0x7f02004a

    const v4, 0x7f020015

    const v2, 0x7f020012

    .line 141
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    .line 208
    :goto_0
    return-void

    .line 143
    :sswitch_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020014

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 144
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$1(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 145
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$2(Lcom/teewoo/app/bus/ui/LinePassByStation;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 146
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$3(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 147
    :cond_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$4(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080015

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/util/DialogUtil;->baseDialog(Landroid/content/Context;I)V

    goto :goto_0

    .line 150
    :sswitch_1
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 151
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$1(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 153
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$5(Lcom/teewoo/app/bus/ui/LinePassByStation;)Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

    move-result-object v0

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$6(Lcom/teewoo/app/bus/ui/LinePassByStation;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;->findByStationId(Ljava/lang/Integer;)Lcom/teewoo/app/bus/model/collection/StationCollection;

    move-result-object v9

    .line 154
    .local v9, staCol:Lcom/teewoo/app/bus/model/collection/StationCollection;
    if-eqz v9, :cond_1

    .line 156
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$4(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/content/Context;

    move-result-object v0

    .line 157
    const v2, 0x7f080032

    .line 158
    new-instance v4, Lcom/teewoo/app/bus/ui/LinePassByStation$2$1;

    invoke-direct {v4, p0, v9}, Lcom/teewoo/app/bus/ui/LinePassByStation$2$1;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation$2;Lcom/teewoo/app/bus/model/collection/StationCollection;)V

    .line 169
    const/4 v5, 0x0

    .line 156
    invoke-static/range {v0 .. v5}, Lcom/teewoo/app/bus/util/DialogUtil;->askDialog(Landroid/content/Context;IIILandroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_0

    .line 172
    :cond_1
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$3(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    const v2, 0x7f020013

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 173
    new-instance v7, Lcom/teewoo/app/bus/model/collection/StationCollection;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$6(Lcom/teewoo/app/bus/ui/LinePassByStation;)I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$7(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Lcom/teewoo/app/bus/util/Utils;->getLocCurrentTime()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v7, v0, v2, v4}, Lcom/teewoo/app/bus/model/collection/StationCollection;-><init>(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;)V

    .line 175
    .local v7, newSta:Lcom/teewoo/app/bus/model/collection/StationCollection;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$5(Lcom/teewoo/app/bus/ui/LinePassByStation;)Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

    move-result-object v0

    invoke-virtual {v0, v7}, Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;->save(Lcom/teewoo/app/bus/model/collection/StationCollection;)V

    .line 176
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    const/4 v2, 0x1

    invoke-static {v0, v2}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$8(Lcom/teewoo/app/bus/ui/LinePassByStation;Z)V

    .line 177
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    .line 178
    const v2, 0x7f080033

    .line 180
    new-instance v4, Lcom/teewoo/app/bus/ui/LinePassByStation$2$2;

    invoke-direct {v4, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$2$2;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation$2;)V

    .line 190
    const/4 v5, 0x0

    .line 177
    invoke-static/range {v0 .. v5}, Lcom/teewoo/app/bus/util/DialogUtil;->askDialog(Landroid/content/Context;IIILandroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;)V

    goto/16 :goto_0

    .line 194
    .end local v7           #newSta:Lcom/teewoo/app/bus/model/collection/StationCollection;
    .end local v9           #staCol:Lcom/teewoo/app/bus/model/collection/StationCollection;
    :sswitch_2
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$1(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020049

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 195
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 196
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$2(Lcom/teewoo/app/bus/ui/LinePassByStation;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 197
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$3(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 198
    :cond_2
    new-instance v6, Landroid/content/Intent;

    const-string v0, "android.intent.action.SENDTO"

    const-string v1, "smsto:"

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-direct {v6, v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 199
    .local v6, it:Landroid/content/Intent;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$9(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/lang/String;

    move-result-object v8

    .line 200
    .local v8, sms:Ljava/lang/String;
    const-string v0, "sms_body"

    invoke-virtual {v6, v0, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 201
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-virtual {v0, v6}, Lcom/teewoo/app/bus/ui/LinePassByStation;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 204
    .end local v6           #it:Landroid/content/Intent;
    .end local v8           #sms:Ljava/lang/String;
    :sswitch_3
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;->this$0:Lcom/teewoo/app/bus/ui/LinePassByStation;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->finish()V

    goto/16 :goto_0

    .line 141
    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0a0008 -> :sswitch_0
        0x7f0a000a -> :sswitch_1
        0x7f0a000c -> :sswitch_2
        0x7f0a0097 -> :sswitch_3
    .end sparse-switch
.end method
